projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4774d9c
)
Set errno to 0 before calling strtoul
author
Alexander Larsson
<alexl@redhat.com>
Tue, 7 Apr 2009 13:32:16 +0000
(15:32 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Tue, 7 Apr 2009 13:32:16 +0000
(15:32 +0200)
We check errno for failure, so ensure its cleared first. (#573922)
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index 6dce1485c709dbd7e455141f160c34740d166932..4bbd53e0cea3a819d0f84c53f10d1b9f48523b96 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-395,7
+395,8
@@
extract_time_from_startup_id (const gchar* startup_id)
/* Skip past the "_TIME" part */
timestr += 5;
-
+
+ errno = 0;
timestamp = strtoul (timestr, &end, 0);
if (end != timestr && errno == 0)
retval = timestamp;